package com.example.shop.goods.enums;


public enum ShelfState {
    THE_SHELVES(0),
    SHELVES(1);
    private int value;
    ShelfState(int value){
        this.value = value;
    }

    public static ShelfState getShelfState(int value){
        ShelfState[] values = ShelfState.values();
        for(ShelfState state:values){
            if(state.getValue() == value){
                return state;
            }
        }
        return null;
    }

    public int getValue() {
        return value;
    }
}
